package com.teemor.im.remoting.exception;

import com.teemor.im.common.exception.ImException;
import com.teemor.im.discovery.node.ServerNode;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/7/10 10:10
 */
public class RemotingTimeoutException extends ImException {
    public RemotingTimeoutException(String msg) {
        super(msg);

    }

    public RemotingTimeoutException(ServerNode node, long timeout, Throwable cause) {
        super("wait response on the node host: " + node.getHost() + ", port: " + node.getPort() + ", timeout, " + timeout + "(ms)", cause);

    }
}
